home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Online / SpeakFreely / src / gsm / inc / toast.h < prev    next >
C/C++ Source or Header  |  2000-05-18  |  2KB  |  103 lines

  1. /*
  2.  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
  3.  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
  4.  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
  5.  */
  6.  
  7. /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/inc/RCS/toast.h,v 1.1 1992/10/28 00:11:08 jutta Exp $ */
  8.  
  9. #ifndef    TOAST_H
  10. #define    TOAST_H                /* Guard against multiple includes */
  11.  
  12. #include "config.h"
  13.  
  14. #include <sys/types.h>
  15. #include <sys/stat.h>
  16.  
  17. #include <stdio.h>
  18. #include <ctype.h>
  19. #include <signal.h>
  20.  
  21. #include <errno.h>
  22. #ifndef    HAS_ERRNO_DECL
  23.      extern int    errno;
  24. #endif
  25.  
  26. #ifdef    HAS_LIMITS_H
  27. #include <limits.h>
  28. #endif
  29.  
  30. #ifdef    HAS_FCNTL_H
  31. # include <fcntl.h>
  32. #endif
  33.  
  34. #ifdef    HAS_UTIME
  35. # ifdef    HAS_UTIME_H
  36. #  include <utime.h>
  37. # endif
  38. #endif
  39.  
  40. #include "gsm.h"
  41.  
  42. #ifndef    S_ISREG
  43. #define    S_ISREG(x)    ((x) & S_IFREG)
  44. #endif    /* S_ISREG */
  45.  
  46.  
  47. # define    READ    "r"
  48. # define    WRITE    "w"
  49. # define    O_WRITE_EXCL    O_WRONLY|O_CREAT|O_EXCL
  50.  
  51. #ifndef SIGHANDLER_T
  52. #define SIGHANDLER_T    void    /* what does a signal handler return? */
  53. #endif
  54.  
  55.  
  56. #ifdef    HAS_STRING_H
  57. #include    <string.h>
  58. #else
  59. #    ifdef HAS_STRINGS_H
  60. #    include <strings.h>
  61. #    else
  62. #        include "proto.h"
  63.  
  64.         extern int    strlen    P((char *));
  65.         extern char *    strcpy  P((char *, char *));
  66.         extern char *    strcat  P((char *,  char *));
  67.         extern char *    strrchr P((char *, int));
  68.  
  69. #        include "unproto.h"
  70. #    endif
  71. #endif
  72.  
  73.  
  74. #ifdef    HAS_STDLIB_H
  75. #include    <stdlib.h>
  76. #else
  77. #    include "proto.h"
  78. #    ifdef    HAS_MALLOC_H
  79. #    include <malloc.h>
  80. #    else
  81.         extern char    * malloc P((unsigned));
  82. #    endif
  83.     extern int    exit P((int));
  84. #    include "unproto.h"
  85. #endif
  86.  
  87.  
  88. #ifdef    USE_PATHCONF
  89. #ifdef    HAS_UNISTD_H
  90. #    include    <unistd.h>
  91. #endif
  92. #endif
  93.  
  94. /*
  95.  *    This suffix is tacked onto/removed from filenames
  96.  *    similar to the way freeze and compress do it.
  97.  */
  98. #define    SUFFIX_TOASTED        ".gsm"
  99.  
  100. #include    "proto.h"
  101.  
  102. #endif        /* TOAST_H */
  103.